package com.eqdd.yiqidian.utils;

import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.provider.Settings;

import com.eqdd.yiqidian.base.Config;

/**
 * Created by lv on 17-8-29.
 */

public class DakaUtil {
    public static String getWiFiName(Context context){
        WifiManager wifi = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
        WifiInfo info = wifi.getConnectionInfo();
        return info.getSSID();
    }
    public static String getPhoneMac(Context context){
        WifiManager wifi = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
        WifiInfo info = wifi.getConnectionInfo();
        return info.getMacAddress();
    }
    public static String getPhoneUUID(Context context){
        return Settings.System.getString(context.getContentResolver(), Settings.System.ANDROID_ID);

    }
}
